package ltd.hxya.novel.book.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import ltd.hxya.novel.common.bean.BaseEntity;

/**
 * <p>
 * 小说目录表
 * </p>
 *
 * @author hty
 * @since 2022-10-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("book_index")
@ApiModel(value="BookIndex对象", description="小说目录表")
public class BookIndex extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "小说ID")
    private String bookId;

    @ApiModelProperty(value = "目录号")
    private Integer indexNum;

    @ApiModelProperty(value = "目录名")
    private String indexName;

    @ApiModelProperty(value = "字数")
    private Integer wordCount;

    @ApiModelProperty(value = "是否收费，1：收费，0：免费")
    private Integer isVip;



}
